<?php 
   	require_once ".\system\dbConn.php";
 
	$name=$_POST["name"];
	$type=$_POST["type"];
	$details=$_POST["details"];
	$address=$_POST["address"];
	$time=$_POST["time"];
	$money=$_POST["money"];
		//取当前用户名内容
	session_start();//开启session
	$uploadusers=$_SESSION["username"];
	$sql="insert into demand values(null,'$name','$type','$address','$time','$money','$details',now(),'$uploadusers',0,0)";
	$result=mysqli_query($link,$sql);

	header("Content-type:application/json");
	echo json_encode($result==1);	    
 ?>